package pojo;

import java.time.LocalDateTime;

/**
 * 收藏表实体类
 */
public class Sc {
    private Integer id;          // 收藏ID
    private Integer yhId;        // 用户ID
    private Integer wzId;        // 文章ID
    private LocalDateTime createTime; // 创建时间
    private String title;        // 文章标题（非数据库字段，用于展示）
    private String category;     // 文章分类（非数据库字段，用于展示）

    // Getter 和 Setter 方法
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }

    public Integer getYhId() { return yhId; }
    public void setYhId(Integer yhId) { this.yhId = yhId; }

    public Integer getWzId() { return wzId; }
    public void setWzId(Integer wzId) { this.wzId = wzId; }

    public LocalDateTime getCreateTime() { return createTime; }
    public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; }

    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }

    public String getCategory() { return category; }
    public void setCategory(String category) { this.category = category; }

    @Override
    public String toString() {
        return "Sc{" +
                "id=" + id +
                ", yhId=" + yhId +
                ", wzId=" + wzId +
                ", createTime=" + createTime +
                ", title='" + title + '\'' +
                ", category='" + category + '\'' +
                '}';
    }
}